﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ServiceInteface
{
    public interface IRegisterService
    {   
        /// <summary>
        /// Get the password according to the user's name
        /// </summary>
        /// <param name="userName">user's name</param>
        /// <returns>the encrypted password. empty string if no such user's name in database</returns>
        bool IsUserNameExist(string userName);
        
        void Do(Ducu.SRV.ViewModel.RegisterModel model);
    }
}
